package com.shinewind.home.service;

import com.shinewind.pojo.dto.AdminArticleDto;
import com.shinewind.pojo.dto.AdminModelDto;
import com.shinewind.pojo.entity.Brand;
import com.shinewind.pojo.entity.Model;
import com.shinewind.pojo.entity.News;
import com.shinewind.pojo.result.Result;
import com.shinewind.pojo.vo.AdminModelListVo;
import com.shinewind.pojo.vo.PageVo;

import java.util.List;
import java.util.Map;

public interface IModelAdminService {
    public PageVo<Brand> getModelBrandList(Integer current, Integer pageSize);
    public PageVo<AdminModelListVo> getModelList(Integer current, Integer pageSize,
                                                 String title, String typeName,
                                                 String saleTime, String price);
    public PageVo<Brand> getModelBrandListByKeyWord(Integer current, Integer pageSize, String keyWord);
    public Result getAdminModelDetailByMid(String mId);
    public Model addModel(AdminModelDto adminModelDto);
    public Model getModelInfo(String mId);
    public List<Map<String,Object>> getStatusByMid(String mId);
    public Boolean updateModel(String mId, AdminModelDto adminModelDto);
    public Boolean deleteModel(String mId);
    public String getArticleStatusByMid(String mId);
    public News getNewsInfo(String id);
    public PageVo<AdminModelListVo> getModelMidList(Integer current, Integer pageSize);
    public PageVo<AdminModelListVo> getModelMidListByKeyWord(Integer current, Integer pageSize, String keyWord);
    public News addNewsInfo(AdminArticleDto adminArticleDto);
    public Long getModelCount(String mId);
    public List<AdminModelListVo> getModelMidUpdateList(Integer current, Integer pageSize);
    public Boolean updateNewsInfo(AdminArticleDto adminArticleDto);
    public Boolean deleteNewsByid(String mId);
}
